#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <set>

using namespace std;

class Solution {
    public:
        bool isValid(string s) {
            int count1 = 0, count2 = 0, count3 = 0;
            for (int i = 0; i < s.size(); i++) {
                if (s[i] == '(') count1++;
                if (s[i] == ')') count1--;
                if (s[i] == '{') count2++;
                if (s[i] == '}') count2--;
                if (s[i] == '[') count3++;
                if (s[i] == ']') count3--;
            }
            if (count1 == 0 && count2 == 0 && count3 == 0) return true;
            else return false;
        }
};


int main(int argc, char **argv)
{
    Solution mySolution;
    cout << "-----------------Test 1--------------------" << endl;


    cout << "-----------------Test 2--------------------" << endl;


    cout << "-----------------Test 3--------------------" << endl;


    cout << "-----------------Test 4--------------------" << endl;


    cout << "-----------------Test 5--------------------" << endl;



}
